package com.starbucket.user.serivce.Impl;

import com.starbucket.user.entity.User;
import com.starbucket.user.mapper.UserMapper;
import com.starbucket.user.serivce.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;
    @Override
    public User login(User user) {
        return userMapper.userLogin(user);
    }

    @Override
    public int register(User user) {
        return userMapper.userRegister(user);

    }

    @Override
    public User search(Integer id) {
        return userMapper.userSearch(id);
    }
}
